package com.wyw.function.learning.common;

import java.util.Random;

/**
 * @Title   模拟定义外部服务
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * Update History:
 * Author        Time            Content
 */
public class BaseService {

    private static final Random r = new Random();

    protected static void randomDelay() {
        int delay = 500 + r.nextInt(2000);
        try {
            Thread.sleep(delay);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
